import { DataConfigType, IFilterConfigType } from '../../designer/DesignerType';

export interface ComponentBaseProps {
  base?: ComponentInfoType;
  style?: Record<string, any>;
  data?: DataConfigType;
  filter?: IFilterConfigType;
}

export interface ComponentInfoType {
  id: string;
  name: string;
  type: string;
  /**
   * 产品编码，用来区分设备类型
   */
  code?: number;
}

export type ClazzTemplate<C> = new () => C | null;
